package AS3 {
public class CountryEmission {

    private var _general:Number = new Number(0);
    private var _deforestation:Number = new Number(0);
    private var _electricity:Number = new Number(0);
    private var _consumption:Number = new Number(0);
    private var _food:Number = new Number(0);
    private var _flights:Number = new Number(0);
    private var _publicTransport:Number = new Number(0);
    private var _carProduction:Number = new Number(0);
    private var _fuelBurnings:Number = new Number(0);
    private var _airCondition:Number = new Number(0);
    private var _warmWater:Number = new Number(0);
    private var _heating:Number = new Number(0);
    private var _maintenance:Number = new Number(0);

    private var _averageEmission:Number = new Number(0);
    private var _exportEmission:Number = new Number(0);
    private var co2_kwh:Number = new Number(0);

    private var _coalTonnePerCO2Tonne:Number = new Number(0);
    private var _gasM3PerCO2Tonne:Number = new Number(0);
    private var _oilTonnePerCO2Tonne:Number = new Number(0);


    public function get averageEmission():Number {
        return _averageEmission;
    }

    public function set averageEmission(value:Number):void {
        _averageEmission = value;
    }

    public function get exportEmission():Number {
        return _exportEmission;
    }

    public function set exportEmission(value:Number):void {
        _exportEmission = value;
    }

    public function get general():Number {
        return _general;
    }

    public function set general(value:Number):void {
        _general = value;
    }

    public function get deforestation():Number {
        return _deforestation;
    }

    public function set deforestation(value:Number):void {
        _deforestation = value;
    }

    public function get electricity():Number {
        return _electricity;
    }

    public function set electricity(value:Number):void {
        _electricity = value;
    }

    public function get consumption():Number {
        return _consumption;
    }

    public function set consumption(value:Number):void {
        _consumption = value;
    }

    public function get food():Number {
        return _food;
    }

    public function set food(value:Number):void {
        _food = value;
    }

    public function get flights():Number {
        return _flights;
    }

    public function set flights(value:Number):void {
        _flights = value;
    }

    public function get publicTransport():Number {
        return _publicTransport;
    }

    public function set publicTransport(value:Number):void {
        _publicTransport = value;
    }

    public function get carProduction():Number {
        return _carProduction;
    }

    public function set carProduction(value:Number):void {
        _carProduction = value;
    }

    public function get fuelBurnings():Number {
        return _fuelBurnings;
    }

    public function set fuelBurnings(value:Number):void {
        _fuelBurnings = value;
    }

    public function get airCondition():Number {
        return _airCondition;
    }

    public function set airCondition(value:Number):void {
        _airCondition = value;
    }

    public function get warmWater():Number {
        return _warmWater;
    }

    public function set warmWater(value:Number):void {
        _warmWater = value;
    }

    public function get heating():Number {
        return _heating;
    }

    public function set heating(value:Number):void {
        _heating = value;
    }

    public function get maintenance():Number {
        return _maintenance;
    }

    public function set maintenance(value:Number):void {
        _maintenance = value;
    }

    public function copy():CountryEmission {
        var copy:CountryEmission = new CountryEmission();

        copy.exportEmission = this.exportEmission;
        copy.averageEmission = this.averageEmission;
        copy.setCO2KWhRatio(this.getCO2KWhRatio());

        copy.coalTonnePerCO2Tonne = this.coalTonnePerCO2Tonne;
        copy.oilTonnePerCO2Tonne = this.oilTonnePerCO2Tonne;
        copy.gasM3PerCO2Tonne = this.gasM3PerCO2Tonne;

        copy.general = this.general;
        copy.deforestation = this.deforestation;
        copy.electricity = this.electricity;
        copy.consumption = this.consumption;
        copy.food = this.food;
        copy.flights = this.flights;
        copy.publicTransport = this.publicTransport;
        copy.carProduction = this.carProduction;
        copy.fuelBurnings = this.fuelBurnings;
        copy.airCondition = this.airCondition;
        copy.warmWater = this.warmWater;
        copy.heating = this.heating;
        copy.maintenance = this.maintenance;

        return copy;
    }

    public function getCO2KWhRatio():Number {
        return co2_kwh;
    }

    public function setCO2KWhRatio(setValue:Number):void {
        co2_kwh = setValue;
    }

    public function set coalTonnePerCO2Tonne(setValue:Number):void {
        _coalTonnePerCO2Tonne = setValue;
    }

    public function get coalTonnePerCO2Tonne():Number {
        return _coalTonnePerCO2Tonne;
    }

    public function set gasM3PerCO2Tonne(setValue:Number):void {
        _gasM3PerCO2Tonne = setValue;
    }

    public function get gasM3PerCO2Tonne():Number {
        return _gasM3PerCO2Tonne;
    }

    public function set oilTonnePerCO2Tonne(setValue:Number):void {
        _oilTonnePerCO2Tonne = setValue;
    }

    public function get oilTonnePerCO2Tonne():Number {
        return _oilTonnePerCO2Tonne;
    }
}
}